//
//  RPMedicineSinglePlan.m
//  yilutongxing
//
//  Created by T&J on 2017/6/18.
//  Copyright © 2017年 YZE. All rights reserved.
//

#import "RPMedicineSinglePlan.h"

@implementation RPMedicineSinglePlan
- (id)copyWithZone:(NSZone *)zone{
    RPMedicineSinglePlan *plan = [[RPMedicineSinglePlan allocWithZone:zone]init];
    plan.id = self.id;
    plan.frequency = [self.frequency copy];
    plan.unit = [self.unit copy];
    plan.times = [self.times copy];
    plan.dose = [self.dose copy];
    plan.medicineName = [self.medicineName copy];
    plan.medicine = [self.medicine copy];
    NSMutableArray *timesArr = [NSMutableArray array];
    for (int i=0; i<self.timesArr.count; i++) {
        [timesArr addObject:[self.timesArr[i] copy]];
    }
    plan.timesArr = timesArr;
    
    return plan;
}
@end
